<?php

namespace App\Models\Note;

use App\Models\BaseModel;

class TopicDoc extends BaseModel
{

    protected $table = 'note_topic_doc';

    protected $fillable = [
        'tid',
        'did',
        'sort',
    ];

    public function doc()
    {
        return $this->hasOne(Doc::class, 'id', 'did');
    }
}
